﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SinBiota.Model.Entities;

namespace SinBiota.Model.Persistence.NHibernateMappings
{
    public class SpecimenMapping : BaseEntityMapping<Specimen>
    {
        public SpecimenMapping()
        {
            References(p => p.Occurrence);
            References(p => p.TaxonomicClassification);
            Map(p => p.Count);
            HasMany(p => p.DepositaryUnitRecords).Inverse();
        }
    }
}
